package stu.sup.service;

import stu.sup.dto.OrderDto;
import stu.sup.entity.Orders;
import stu.sup.entity.UserLogin;

import java.util.List;

/**
 * Created by HUAWEI on 2020/6/23.
 */
public interface IOderService {
    //订单的添加
    Orders saveorder(Integer userId,Integer orderId);
    //订单删除
    boolean delateorder(Orders orders);
    //查询某个用户的订单
    List<Orders> selectByuserId(UserLogin userLogin);
    //修改订单信息
    int delatebyOrderId(Orders orders);
    //订单分页
    List<Orders> findAll(int pageNum, int PageSize, UserLogin userLogin);
    //订单页面数据生成
    OrderDto creatOrder(Orders orders);

}
